import request from "@/utils/request";
// 满减满赠

export function get_full_index(params) {
  return request({
    url: "/full/index",
    method: "get",
    params
  });
}

// 新增活动
export function get_full_add(data) {
  return request({
    url: "/full/add",
    method: "post",
    data: data
  });
}

// 获取商品
export function get_full_getGoodsSpu(params) {
  return request({
    url: "/full/getGoodsSpu",
    method: "get",
    params
  });
}

// 弹窗获取商品
export function get_full_getUndercarriage(params) {
  return request({
    url: "/full/getUndercarriage",
    method: "get",
    params
  });
}

// 查看活动
export function get_full_info(params) {
  return request({
    url: "/full/info",
    method: "get",
    params
  });
}

// 编辑活动
export function get_full_edit(data) {
  return request({
    url: "/full/edit",
    method: "post",
    data: data
  });
}

// 活动关闭
export function get_full_closeActivity(data) {
  return request({
    url: "/full/closeActivity",
    method: "post",
    data: data
  });
}
